package cn.kgc.kgceurekauserconsumer1.fallback;

import cn.kgc.kgceurekauserconsumer1.client.RestUserServiceClient;
import org.springframework.stereotype.Component;
import pojo.User;

/**
 * @author geQiang
 * @version 1.0
 * @date 2019/4/14
 * @description cn.kgc.kgceurekauserconsumer1.fallback
 */
@Component
public class RestUserServiceClientFallback implements RestUserServiceClient {
    @Override
    public String login(String username, String password) {
        return null;
    }

    @Override
    public User loginByUser(User user) {
        user.setAge(0);
        user.setAddress("不知道");
        user.setUsername("不知道");
        user.setPassword("不知道");
        return user;
    }
}
